#include <opencv2/opencv.hpp>
#include <iostream>

using namespace cv; //Must Need Write cv
using namespace std;

/*
 * ./opencv_imread <image_path>
 *
 */

int main(int argc, char** argv)
{
    if (argc < 2) {
        std::cerr << "Usage: " << argv[0] << " <image_path>" << std::endl;
        return -1;
    }

    Mat img_mat = imread(argv[1]);
    if (img_mat.empty()) {
        std::cerr << "Could not open or find the image!" << std::endl;
        return -1;
    }

    printf("width = %d, height = %d, channels = %d\n", img_mat.cols, img_mat.rows, img_mat.channels());
    
    return 0;
}


